<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'insert'">新增</h3>
	<!--<h3 class="modal-title" ng-if="param.type == 'update'">修改</h3>-->
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label"><span
						style="color: red; text-align: center;">* &nbsp</span>优惠线路选择：</label>
					<div class="col-sm-5">
						<ui-select ng-model="routelist.selected" theme="bootstrap">
						<ui-select-match placeholder="线路选择">{{$select.selected.city1.name+'
						➡ '+$select.selected.city2.name}}</ui-select-match> <ui-select-choices
							repeat="r in routelist | propsFilter:{code: $select.search}">
						<span ng-bind-html="r.code | highlight: $select.search"></span> <small
							ng-bind-html="r.city1.name+' ➡ '+r.city2.name | highlight: $select.search"></small>
						</ui-select-choices> </ui-select>
					</div>
					<p>必选。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>类型：</label>
					<div class="col-sm-5">
						<ui-select ng-model="typeList.selected" theme="bootstrap">
							<ui-select-match placeholder="类型">{{$select.selected.name}}</ui-select-match>
							<ui-select-choices repeat="type in typeList | propsFilter:{name: $select.search}">
								<span ng-bind-html="type.name | highlight: $select.search"></span>
							</ui-select-choices>
						</ui-select>
					</div>
					<p>必选。</p>
				</div>
				<div class="form-group" ng-if="serviceList!=''">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>服务时段：</label>
					<div class="col-sm-5">
						<ui-select ng-model="serviceList.selected" theme="bootstrap">
							<ui-select-match placeholder="服务时段">{{$select.selected.display}}</ui-select-match>
							<ui-select-choices repeat="service in serviceList | propsFilter:{display: $select.search}">
								<span ng-bind-html="service.display | highlight: $select.search"></span>
							</ui-select-choices>
						</ui-select>
					</div>
					<p ng-if="param.type == 'insert'">根据类型来显示对应的服务时段。</p>
				</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>

	</form>
</div>